package com.sys.menu.service;

import com.app.view.TreeMenu;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sys.menu.entity.SysMenu;
import com.sys.menu.view.SysMenuView;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 菜单表 服务类
 * </p>
 *
 * @author djianfeng
 * @since 2018-07-24
 */
public interface SysMenuService extends IService<SysMenu> {
    /**
     * 获取用户菜单
     *
     * @param userId 用户id
     * @return
     */
    Set<String> findMenusByUserId(Long userId);

    /**
     * 获取当前用户的菜单
     */
    List<TreeMenu> selectTreeMenuByUserId(Long userId);

    public List<SysMenuView> getSysMenuViews(Page<SysMenuView> page, SysMenuView view);

    List<TreeMenu> selectTreeMenu();

    List<TreeMenu> selectAllMenu();
}
